package com.net.all.testing;

import java.util.HashMap;
import java.util.Map;

class Message
{
	
}


class TestA implements Runnable
{

	Message message;

	public TestA(Message message) 
	{
		this.message = message;
	}

	public void run()
	{
		work();
		
	}

	private void work() 
	{
		synchronized (message)
		{
			synchronized(message)
			{
				synchronized(message)
				{
				System.out.println("print .........");
				}
			}
			
		}
		
	}
	
}

public class DemoAllTest 
{
	
	
	
	public static void main(String[] args) 
	{
		Message message = new Message();
       Thread t1 = new Thread(new TestA(message));
       
       t1.start();
		
	}








	

	

}
